<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .xxx {
      width: 200px;
      height: 200px;
      background-color: yellowgreen;
    }
  </style>
</head>
<body>
  <div class="xxx">
    
  </div>
  <script>
    form:{
      name:234;
      region:"xx";
    }
    var str;
  var ipos;
  str="123456789+abc";
  ipos = str.indexOf("+");
  str1=str.substring(0,ipos); //取前部分
  str2=str.substring(ipos,str.length);//取后部分
  </script>
</body>
</html>